//---------------[CSE420]----------[Project #4]----------[Part #3]---------------
#ifndef _COMMON_H_
#define _COMMON_H_

#include <stdint.h>
#include <math.h>

#define TIMING
#define NUM_OF_ROWS							1000
#define NUM_OF_COLS							1000
#define MATRIX_SIZE                         NUM_OF_ROWS * NUM_OF_COLS

/* Control block for DMA */
typedef struct _CONTROL_BLOCK
{
	int *matrixA_row;
	int *matrixB_col;
	int *SPU_result;
	int *padding[1];
} CONTROL_BLOCK;

/* Alignment macros */
#define QWORD_ALIGNED __attribute__((aligned(16)))
#define CACHE_ALIGNED __attribute__((aligned(128)))

#endif
//------------------------------------[END]--------------------------------------
